﻿<UserControl x:Class="Berico.SnagL.Infrastructure.Controls.ToolBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             DataContext="{Binding ToolbarVM, Source={StaticResource Locator}}"
             d:DesignHeight="50" d:DesignWidth="500"
             Width="Auto" Height="Auto" Visibility="{Binding Visibility}" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    
    <Grid x:Name="LayoutRoot">
        <!-- Toolbar Background -->
        <Rectangle Stroke="#FF8E8E8E" StrokeThickness="1" Height="Auto" Width="Auto" HorizontalAlignment="Stretch">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFF0F0F0"/>
                    <GradientStop Color="#FF8C8C8C" Offset="1"/>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <!-- Toolbar Items Area -->
        <Grid Margin="2">
            <Grid>
                <ItemsControl ItemsSource="{Binding Items}">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal" Margin="2" />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                    <!--<ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <ContentControl Content="{Binding}" />
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>-->
                </ItemsControl>
                <sdk:Label Content="{Binding Version}" HorizontalAlignment="Right" Margin="4" />
            </Grid>
        </Grid>
    </Grid>
</UserControl>
